import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/statistics_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class StatisticsEntity {
	String? incomeAmount;
	String? allocAmount;
	String? expendAmount;
	StatisticsSumYear? sumYear;
	StatisticsCurMonth? curMonth;
	StatisticsLastMonth? lastMonth;
	StatisticsIncomeData? incomeData;
	StatisticsExpendData? expendData;
	StatisticsAllocData? allocData;

	StatisticsEntity();

	factory StatisticsEntity.fromJson(Map<String, dynamic> json) => $StatisticsEntityFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StatisticsSumYear {
	String? incomeTotal;
	String? expendTotal;
	String? incomeMonthRate;
	String? expendMonthRate;
	StatisticsSumYearExpendDetail? expendDetail;
	String? allocTotal;
	String? allocMonthRate;
	String? rtEffect;

	StatisticsSumYear();

	factory StatisticsSumYear.fromJson(Map<String, dynamic> json) => $StatisticsSumYearFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsSumYearToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StatisticsSumYearExpendDetail {
	int? salary;
	int? consume;
	int? govfee;
	int? remit;
	int? office;
	double? transfer;
	int? other;

	StatisticsSumYearExpendDetail();

	factory StatisticsSumYearExpendDetail.fromJson(Map<String, dynamic> json) => $StatisticsSumYearExpendDetailFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsSumYearExpendDetailToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StatisticsCurMonth {
	String? incomeTotal;
	String? expendTotal;
	String? incomeMonthRate;
	String? incomeYearRate;
	String? expendMonthRate;
	String? expendYearRate;
	StatisticsCurMonthExpendDetail? expendDetail;
	String? allocTotal;
	String? allocMonthRate;
	String? allocYearRate;
	String? monthEffect;

	StatisticsCurMonth();

	factory StatisticsCurMonth.fromJson(Map<String, dynamic> json) => $StatisticsCurMonthFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsCurMonthToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StatisticsCurMonthExpendDetail {
	int? salary;
	int? consume;
	int? govfee;
	int? remit;
	int? office;
	double? transfer;
	int? other;

	StatisticsCurMonthExpendDetail();

	factory StatisticsCurMonthExpendDetail.fromJson(Map<String, dynamic> json) => $StatisticsCurMonthExpendDetailFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsCurMonthExpendDetailToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StatisticsLastMonth {
	String? incomeTotal;
	String? expendTotal;
	String? incomeMonthRate;
	String? incomeYearRate;
	String? expendMonthRate;
	String? expendYearRate;
	StatisticsLastMonthExpendDetail? expendDetail;
	String? allocTotal;
	String? allocMonthRate;
	String? allocYearRate;
	String? monthEffect;

	StatisticsLastMonth();

	factory StatisticsLastMonth.fromJson(Map<String, dynamic> json) => $StatisticsLastMonthFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsLastMonthToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StatisticsLastMonthExpendDetail {
	int? salary;
	int? consume;
	int? govfee;
	int? remit;
	int? office;
	int? transfer;
	int? other;

	StatisticsLastMonthExpendDetail();

	factory StatisticsLastMonthExpendDetail.fromJson(Map<String, dynamic> json) => $StatisticsLastMonthExpendDetailFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsLastMonthExpendDetailToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StatisticsIncomeData {
	List<int>? value;
	List<int>? yearRate;
	List<int>? monthRate;
	List<int>? monthEffect;

	StatisticsIncomeData();

	factory StatisticsIncomeData.fromJson(Map<String, dynamic> json) => $StatisticsIncomeDataFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsIncomeDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StatisticsExpendData {
	List<int>? value;
	List<int>? yearRate;
	List<int>? monthRate;

	StatisticsExpendData();

	factory StatisticsExpendData.fromJson(Map<String, dynamic> json) => $StatisticsExpendDataFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsExpendDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StatisticsAllocData {
	List<int>? value;
	List<int>? yearRate;
	List<int>? monthRate;

	StatisticsAllocData();

	factory StatisticsAllocData.fromJson(Map<String, dynamic> json) => $StatisticsAllocDataFromJson(json);

	Map<String, dynamic> toJson() => $StatisticsAllocDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}